//
//  MessageRequestModel.h
//  ExcellentHome
//
//  Created by Wendy on 16/7/26.
//  Copyright © 2016年 陈区. All rights reserved.
//
//  暂时用于Message模块用到的网络请求

#import <Foundation/Foundation.h>

#import "SEGWinningPublicModel.h"

@interface MessageRequestModel : NSObject

+ (instancetype)sharedRequestModel;

/**
 *  请求消息列表
 *
 *  @param finished 网络请求完成后的操作
 */
- (void)requestMessageList:(SEGNetworkReponse)finished;



/*==========用于SEGOrderMessageViewController==========*/

/**
 *  请求服务到家订单详情 可替换loadNetData方法中ApiName为kProviderDetail的方法
 *
 *  @param providerSid   参数providerSid
 *  @param finished 网络请求完成后的操作
 */
- (void)requestProviderDetailWithProviderSid:(NSString*)providerSid finished:(SEGNetworkReponse)finished;

/**
 *  请求信息强推 可替换loadNetData方法中ApiName为kPushMessage的方法
 *
 *  @param params   参数params 字典
 *  @param finished 网络请求完成后的操作
 */
- (void)requestPushMessageWithParamsDict:(NSDictionary*)params finished:(SEGNetworkReponse)finished;




/*==========用于SessionMessageViewController==========*/

/**
 *  请求信息强推 可替换[[BusinessManager sharedManager].sessionMessageManager pushMessagesForChat
 *
 *  @param finished 网络请求完成后的操作
 */
- (void)requestPushMessageForChat:(NSString *)msgType contentType:(NSString*)contentType userId:(NSString*)userId title:(NSString*)title description:(NSString*)description content:(NSString*)content type:(NSString*)type serviceId:(NSString*)serviceId from:(NSString*)from groupId:(NSString *)groupId provider:(NSString *)provider finished:(SEGNetworkReponse)finished;


/**
 *  请求用户信息
 *
 *  @param ids   用户的Id
 *  @param finished 网络请求完成后的操作
 */
- (void)requestUserMessageWithUsersId:(NSString*)ids finished:(SEGNetworkReponse)finished;
/**
 用户信息字典 用户ID作为key
 */
@property (nonatomic, strong)NSMutableDictionary *userInfoDict;

/**
 *  请求服务号基本信息
 *
 *  @param finished 网络请求完成后的操作
 */
- (void)requestServicenbrBaseInfo:(SEGNetworkReponse)finished;
/**
 服务号基本信息
 */
@property (nonatomic, strong)SEGServiceBaseInfoModel *serviceBaseInfoModel;

/*
 *  请求服务号底部菜单接口
 *
 *  @param serviceNbr   服务号
 *  @param serviceNumberId  服务号主键Id
 *  @param communityId   项目Id
 *  @param finished 网络请求完成后的操作
 *  @author Helen
 */
-(void)requestServicenbrMenuListWithServiceNbr:(NSString *)serviceNbr
                               serviceNumberId:(NSString *)serviceNumberId
                                   communityId:(NSString *)communityId
                                      finished:(SEGNetworkReponse)finished;
/**
 服务号底部菜单接口 数据源
 */
@property (nonatomic, strong) NSArray<SEGMenuListModel*>* servicenbrMenuListModel;


/*
 *  请求中奖公告详情
 *
 *  @param noticeId   中奖公告ID
 *  @param finished 网络请求完成后的操作
 *  @author Helen
 */
-(void)requestWinningPublicDetailWithObjId:(NSString *)noticeId
                                  finished:(SEGNetworkReponse)finished;
/**
 中奖公告详情
 */
@property (nonatomic, strong)SEGWinningPublicModel *winningPublicModel;

@end
